import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import ElementUI from "element-ui";
import "reset-css";
import "element-ui/lib/theme-chalk/index.css";
import locale from "element-ui/lib/locale/lang/zh-CN";
import "@/assets/icons/index";
import moment from "moment";

Vue.config.productionTip = false;
Vue.filter("dateFormat", function (dataStr, patten = "YYYY-MM-DD HH:mm:ss") {
  return moment(dataStr).format(patten);
});
Vue.filter("TimeFilter", function (dataStr, patten = "YYYY-MM-DD ") {
  return moment(dataStr).format(patten);
});
Vue.use(ElementUI, { locale });
new Vue({
  router,
  store,
  ElementUI,
  render: (h) => h(App),
}).$mount("#app");
